<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2019/11/14
 * Time: 11:46
 */

namespace DuRequest\Checker\lib;


class RequestData
{
    protected $request_data;
    function __construct( $request_data )
    {
        $this->request_data = $request_data;
    }

    public function getData(){
        return $this->request_data;
    }

    public function getDataByKey( $key ){
        return $this->issetKey($key) ? $this->request_data[$key] : null;
    }

    public function issetKey( $key ){
        return isset($this->request_data[$key]);
    }
}